package sqldatabase;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

/**
 * Created by Administrator on 2015/3/14.
 */
public class DbOpenHelper extends SQLiteOpenHelper {
    public static String name="Timor.db";
    public static int version=1;
    public DbOpenHelper(Context context) {
        super(context, name, null, version);

    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        String person_message="create table manager (_id integer primary key autoincrement,head text,name text,sex text,phone text,signature text,address text)";
        db.execSQL(person_message);
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
}
